package com.zf.yichat.model;

import java.io.Serializable;
import javax.persistence.*;

@Table(name = "message_rong_cloud_synchronization")
public class RcMessageSynchronization implements Serializable {
    @Id
    private Integer id;

    @Column(name = "from_user_id")
    private Integer fromUserId;

    @Column(name = "to_user_id")
    private Integer toUserId;

    /**
     * 消息类型
     */
    @Column(name = "object_name")
    private String objectName;

    /**
     * 消息时间
     */
    @Column(name = "channel_type")
    private String channelType;

    /**
     * 时间
     */
    @Column(name = "msg_timestamp")
    private Long msgTimestamp;

    /**
     * 消息ID
     */
    @Column(name = "msg_id")
    private String msgId;

    @Column(name = "sensitive_type")
    private Integer sensitiveType;

    /**
     * 消息来源
     */
    private String source;

    @Column(name = "group_user_ids")
    private String groupUserIds;

    private String text;

    /**
     * 内容
     */
    private String content;

    private static final long serialVersionUID = 1L;

    public RcMessageSynchronization(Integer id, Integer fromUserId, Integer toUserId, String objectName, String channelType, Long msgTimestamp, String msgId, Integer sensitiveType, String source, String groupUserIds, String text, String content) {
        this.id = id;
        this.fromUserId = fromUserId;
        this.toUserId = toUserId;
        this.objectName = objectName;
        this.channelType = channelType;
        this.msgTimestamp = msgTimestamp;
        this.msgId = msgId;
        this.sensitiveType = sensitiveType;
        this.source = source;
        this.groupUserIds = groupUserIds;
        this.text = text;
        this.content = content;
    }

    public RcMessageSynchronization() {
        super();
    }

    /**
     * @return id
     */
    public Integer getId() {
        return id;
    }

    /**
     * @param id
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * @return from_user_id
     */
    public Integer getFromUserId() {
        return fromUserId;
    }

    /**
     * @param fromUserId
     */
    public void setFromUserId(Integer fromUserId) {
        this.fromUserId = fromUserId;
    }

    /**
     * @return to_user_id
     */
    public Integer getToUserId() {
        return toUserId;
    }

    /**
     * @param toUserId
     */
    public void setToUserId(Integer toUserId) {
        this.toUserId = toUserId;
    }

    /**
     * 获取消息类型
     *
     * @return object_name - 消息类型
     */
    public String getObjectName() {
        return objectName;
    }

    /**
     * 设置消息类型
     *
     * @param objectName 消息类型
     */
    public void setObjectName(String objectName) {
        this.objectName = objectName == null ? null : objectName.trim();
    }

    /**
     * 获取消息时间
     *
     * @return channel_type - 消息时间
     */
    public String getChannelType() {
        return channelType;
    }

    /**
     * 设置消息时间
     *
     * @param channelType 消息时间
     */
    public void setChannelType(String channelType) {
        this.channelType = channelType == null ? null : channelType.trim();
    }

    /**
     * 获取时间
     *
     * @return msg_timestamp - 时间
     */
    public Long getMsgTimestamp() {
        return msgTimestamp;
    }

    /**
     * 设置时间
     *
     * @param msgTimestamp 时间
     */
    public void setMsgTimestamp(Long msgTimestamp) {
        this.msgTimestamp = msgTimestamp;
    }

    /**
     * 获取消息ID
     *
     * @return msg_id - 消息ID
     */
    public String getMsgId() {
        return msgId;
    }

    /**
     * 设置消息ID
     *
     * @param msgId 消息ID
     */
    public void setMsgId(String msgId) {
        this.msgId = msgId == null ? null : msgId.trim();
    }

    /**
     * @return sensitive_type
     */
    public Integer getSensitiveType() {
        return sensitiveType;
    }

    /**
     * @param sensitiveType
     */
    public void setSensitiveType(Integer sensitiveType) {
        this.sensitiveType = sensitiveType;
    }

    /**
     * 获取消息来源
     *
     * @return source - 消息来源
     */
    public String getSource() {
        return source;
    }

    /**
     * 设置消息来源
     *
     * @param source 消息来源
     */
    public void setSource(String source) {
        this.source = source == null ? null : source.trim();
    }

    /**
     * @return group_user_ids
     */
    public String getGroupUserIds() {
        return groupUserIds;
    }

    /**
     * @param groupUserIds
     */
    public void setGroupUserIds(String groupUserIds) {
        this.groupUserIds = groupUserIds == null ? null : groupUserIds.trim();
    }

    /**
     * @return text
     */
    public String getText() {
        return text;
    }

    /**
     * @param text
     */
    public void setText(String text) {
        this.text = text == null ? null : text.trim();
    }

    /**
     * 获取内容
     *
     * @return content - 内容
     */
    public String getContent() {
        return content;
    }

    /**
     * 设置内容
     *
     * @param content 内容
     */
    public void setContent(String content) {
        this.content = content == null ? null : content.trim();
    }
}